﻿namespace NavigateTo2013
{
    using Microsoft.VisualStudio.Language.NavigateTo.Interfaces;
    using System;
    using System.Collections.Generic;
    using System.Data.OleDb;

    public class Task
    {
        public Task()
        {
            this.Id = Guid.NewGuid();
            this.Results = new List<string>();
            this.MaxCount = 20;
            this.SortString = "a";
        }

        public Guid Id { get; private set; }
        public string SearchValue { get; set; }
        public bool IsCancelled { get; set; }
        public INavigateToCallback Callback { get; set; }
        public NavigateToItemProvider Provider { get; set; }
        public OleDbConnection Connection { get; set; }
        public IList<string> Results { get; set; }
        public int MaxCount { get; set; }
        public bool FileNamePrefixDone { get; set; }
        public bool FileNameSubstringDone { get; set; }
        public bool FileContentDone { get; set; }
        public bool FileContentPrefixDone { get; set; }
        public bool FreeTextDone { get; set; }
        public string SortString { get; set; }
        public string FilterCache { get; set; }
    }
}